/***
 * R-ZBZB-202109280789713：添加下载图标，增加下载列表页面
 */
import request from "@/utils/request";
export const service = () => {
  return !!JSON.parse(localStorage.$loginInfo).tenantId ? "/event" : "/ttevent";
};
// 查询租户信息
export function getRegion(query) {
  return request({
    url: "/admin/video/getRegion",
    method: "post",
    data: query,
  });
}
//findOrderAlarm
export function findOrderAlarm(query) {
  return request({
    url: service() + "/alarm/type/findOrderAlarm",
    method: "post",
    data: query,
  });
}
//findOrderAlarmAll
export function findOrderAlarmAll(query) {
  return request({
    url: service() + "/alarm/type/findOrderAlarmAll",
    method: "post",
    data: query,
  });
}
export function getEnumInfo(query) {
  return request({
    url: "/admin/base/system/dict/data/dictType/" + query.enumTypeId,
    method: "get",
  });
}
//'/video/getVideoPlaybackUrl'
export function getVideoPlaybackUrl(query) {
  return request({
    url: "/video/getVideoPlaybackUrl",
    method: "post",
    data: query,
  });
}
//'/order/getOrderInfo'
export function getOrderInfo(query) {
  return request({
    url: service() + "/alarm/order/getOrderInfo",
    method: "post",
    data: query,
  });
}
// 受理接口
export function accept(data) {
  return request({
    url: "event/alarm/order/accept",
    method: "post",
    data: data,
  });
}
